<?php
/**
* Bible Data Model Class
* @author: trungdt
* @since Aug 3
*/
class bible {
	function form($object, $translation) {
		if (!defined('SYS_FORMS')) require_once(BASE.'subsystems/forms.php');
		exponent_forms_initialize();
		
		$form = new form();
        // because the verse value has been already in DB, we dont need to inital 
        $form->meta('translation',$translation);
        $form->meta('book',$object->book);
        $form->meta('chapter',$object->chapter);
		$form->meta('verse',$object->verse);
		
		$form->register('bibletext','Nội dung câu Kinh Thánh', new htmleditorcontrol($object->bibletext));
		
		$form->register('submit','',new buttongroupcontrol('Save','','Cancel'));
		return $form;
	}
}

?>
